package branch;

import java.util.Scanner;

public class Switch
{
    public static void main(String[] args)
    {
        test1();
    }

    public static void test1()
    {
        System.out.println("请输入性别：");
        Scanner sc = new Scanner(System.in);
        String sex = sc.next();
        switch(sex)
        {
            case"男":
                System.out.println("你是一个男生");
                break;
            case"女":
                System.out.println("你是一个女生");
                break;
            default:
                System.out.println("输入性别有误");
        }
    }

}
